<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改文件资料')" />


</head>
<!-- html主体-->
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-filelogs-edit" th:object="${vtspFilelogs}">
        <input name="fileLogid" th:field="*{fileLogid}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">活动编号：</label>
            <div class="col-sm-8">
                <input name="activityId" th:field="*{activityId}" class="form-control" type="text">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">资料类型：</label>
            <div class="col-sm-8">
                <select name="extType" class="form-control" th:with="type=${@dict.getType('degree')}">
                    <option value="">请选择</option>
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                            th:value="${dict.dictValue}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">资料编号：</label>
            <div class="col-sm-8">
                <input name="fileId" th:field="*{fileId}" class="form-control" type="text">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">活动名称：</label>
            <div class="col-sm-8">
                <input name="activityName" th:field="*{activityName}" class="form-control" type="text">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">文件数量：</label>
            <div class="col-sm-8">
                <input name="fileNum" th:field="*{fileNum}" class="form-control" type="text">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">文件大小：</label>
            <div class="col-sm-8">
                <input name="fileSize" th:field="*{fileSize}" class="form-control" type="text">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">创建人：</label>
            <div class="col-sm-8">
                <input name="createBy" th:field="*{createBy}" class="form-control" type="text">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">创建时间：</label>
            <div class="input-group date">
                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                <input name="createTime" th:value="${#dates.format(vtspType.createTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">更新者：</label>
            <div class="col-sm-8">
                <input name="updateBy" th:field="*{updateBy}" class="form-control" type="text">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">更新时间：</label>
            <div class="input-group date">
                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                <input name="updateTime" th:value="${#dates.format(vtspType.updateTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
            </div>
        </div>

    </form>
</div>
    <th:block th:include="include :: footer" />
<!-- JS模块 -->
    <script type="text/javascript">
        var prefix = ctx + "vtsp/filelogs";
        $("#form-filelogs-edit").validate(
            {
                focusCleanup: true
            });
        //提交修改的数据
        function submitHandler()
        {
            if ($.validate.form())
            {
                $.operate.save(prefix + "/edit", $('#form-filelogs-edit').serialize());
            }
        }

        //实现时间的选择
        $("input[name='createTime']").datetimepicker(
            {
                format: "yyyy-mm-dd",
                minView: "month",
                autoclose: true
            });
        $("input[name='updateTime']").datetimepicker(
            {
                format: "yyyy-mm-dd",
                minView: "month",
                autoclose: true
            });
    </script>
</body>
</html>
